﻿<!doctype html>
<html>
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="maximum-scale=1.0,minimum-scale=1.0,user-scalable=0,width=device-width,initial-scale=1.0" />
    <meta name="format-detection" content="telephone=no,email=no,date=no,address=no">
    <link rel="stylesheet" type="text/css" href="~/css/aui.css" />
    <link rel="stylesheet" type="text/css" href="./css/aui.css" />
    <style type="text/css">
        .header {
            padding: 2.5rem 0.5rem 2rem 0.5rem;
        }
    </style>
</head>
<body>
    <header class="aui-bar aui-bar-nav aui-text-left header" id="header">
        <br />
        <h1>
            <a class="aui-btn aui-pull-right" tapmode onclick="openClub()">
                <i class="aui-iconfont aui-icon-mobile"></i>
            </a>
            提交结果
        </h1>
    </header>
           
                <script type="text/javascript" src="~/script/aui-dialog.js"></script>
                <script type="text/javascript" src="~/script/api.js"></script>
                <script type="text/javascript">

                    var dialog = new auiDialog({})
                    if (@ViewData["ID"].ToString()=="2")
                    {
                        window.onload = function () {
                            dialog.alert({
                                title: "温馨提示",
                                msg: '排班更新成功<p></p>',
                                buttons: ['查看排班', '返回菜单']
                            }, function (ret) {
                                if (ret.buttonIndex == 2) {
                                    window.location.href = "/Admin/Index";
                                }
                                else window.location.href = "/Admin/Weekdbo"
                                console.log(ret)
                            })
                        }
                    }
                    else
                    {
                        window.onload = function () {
                            dialog.alert({
                                title: "添加结果",
                                msg: '您已成功添加此医生系统为其生成登陆ID为：<p>@ViewData["ID"]</p><p>将继续为其添加照片</p>',
                                buttons: ['取消', '确定']
                            }, function (ret) {
                                if (ret.buttonIndex == 2) {
                                    window.location.href = "/Admin/UploadImage";
                                }
                                else window.location.href = "/Admin/Index"
                                console.log(ret)
                            })
                        }
                    }
                     if (@ViewData["ID"].ToString()=="3")
                    {
                        window.onload = function () {
                            dialog.alert({
                                title: "温馨提示",
                                msg: '预约确认成功<p></p>',
                                buttons: [ '返回菜单']
                            }, function (ret) {
                               
                                    window.location.href = "/Doctor/Index";
                                console.log(ret)
                            })
                        }
                    }
                      if (@ViewData["ID"].ToString()=="4")
                    {
                        window.onload = function () {
                            dialog.alert({
                                title: "温馨提示",
                                msg: '科室信息修改成功<p></p>',
                                buttons: [ '返回菜单']
                            }, function (ret) {
                               
                                    window.location.href = "/Admin/Index";
                                console.log(ret)
                            })
                        }
                    }
                    if (@ViewData["ID"].ToString()=="5")
                    {
                        window.onload = function () {
                            dialog.alert({
                                title: "温馨提示",
                                msg: '科室添加成功',
                                buttons: [ '返回菜单']
                            }, function (ret) {
                                    window.location.href = "/Admin/Index";
                                console.log(ret)
                            })
                        }
                    }
                    if (@ViewData["ID"].ToString()=="6")
                    {
                        window.onload = function () {
                            dialog.alert({
                                title: "温馨提示",
                                msg: '医生信息更改成功',
                                buttons: [ '返回菜单']
                            }, function (ret) {
                                    window.location.href = "/Admin/Index";
                                console.log(ret)
                            })
                        }
                    }
                    if (@ViewData["ID"].ToString()=="7")
                    {
                        window.onload = function () {
                            dialog.alert({
                                title: "温馨提示",
                                msg: '你已经发送过相关请求',
                                buttons: [ '返回菜单']
                            }, function (ret) {
                                    window.location.href = "/Doctor/Index";
                                console.log(ret)
                            })
                        }
                    }
                    if (@ViewData["ID"].ToString()=="8")
                    {
                        window.onload = function () {
                            dialog.alert({
                                title: "登录失败",
                                msg: '账号或密码错误',
                                buttons: [ '返回']
                            }, function (ret) {
                                    window.location.href = "/Home/Login";
                                console.log(ret)
                            })
                        }
                    }
                     if (@ViewData["ID"].ToString()=="9")
                    {
                        window.onload = function () {
                            dialog.alert({
                                title: "注册失败",
                                msg: '这个账号已经被别人使用了<p>换一个试试吧</p>',
                                buttons: [ '返回']
                            }, function (ret) {
                                    window.location.href = "/Home/Login";
                                console.log(ret)
                            })
                        }
                    }
                </script>
            

</body>
</html>




